#ifndef __BOARD_H
#define __BOARD_H
#include <stdio.h>
#include "project_config.h"
#include "bsp.h"
#include "bsp_gpio.h"



/* 温控氟泵传感器板 */
#if (BOARD_ACF_EN)
// DO
#define RS485_DIR_PIN               PA_1
#define ADC1_A0_PIN                 PB_10   /* ADC1复用输入选择控制 */
#define ADC1_A1_PIN                 PB_12
#define ADC1_A2_PIN                 PB_13
#define ADC1_AEN_PIN                PA_12
#define ADC2_A0_PIN                 PB_14   /* ADC2复用输入选择控制 */
#define ADC2_A1_PIN                 PB_15
#define ADC2_A2_PIN                 PA_8
#define ADC2_AEN_PIN                PA_15
#define RELAY1_PIN                  PA_10   /* 继电器输出 */
#define RELAY2_PIN                  PA_11


// DI
#define BUS_SET1_PIN                PA_4    /* 拨码开关 */
#define BUS_SET2_PIN                PA_5
#define BUS_SET3_PIN                PA_6
#define BUS_SET4_PIN                PB_1
#define BUS_SET5_PIN                PB_10

#define DI1_PIN                     PB_3    /* 干接点 */
#define DI2_PIN                     PB_4    /* 干接点 */
#define DI3_PIN                     PB_5    /* 干接点 */
#define DI4_PIN                     PB_6    /* 干接点 */


// PWM
#define PWM_PIN                     PA_9    /* TIMER0_CH1 */


// ADC
#define ADC1_PIN                    PA_7    /* ADC01_IN7 */
#define ADC2_PIN                    PB_0    /* ADC01_IN8 */


// DAC


// UART
#define UART2_TX_PIN                PA_2    /* UART2 for RS485 */
#define UART2_RX_PIN                PA_3


// I2C


// SPI


#endif



#endif	/* __BOARD_H */

